package org.idtem.utils.dataTypes;

public class Token {

	private int begin;
	private int end;
	private String word;
	private String lema;
	private String eagles;
	private String prob;
	private String[] offsets;

	
	public Token(Token token) {
		super();
		this.begin = token.begin;
		this.end = token.end;
		this.word = token.word;
		this.lema = token.lema;
		this.eagles = token.eagles;
		this.prob = token.prob;
		this.offsets = token.offsets;
	}
	
	
	public Token() {}


	public int getBegin() {
		return begin;
	}
	public void setBegin(int begin) {
		this.begin = begin;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}
	public String getLema() {
		return lema;
	}
	public void setLema(String lema) {
		this.lema = lema;
	}
	public String getEagles() {
		return eagles;
	}
	public void setEagles(String eagles) {
		this.eagles = eagles;
	}
	public String getProb() {
		return prob;
	}
	public void setProb(String prob) {
		this.prob = prob;
	}
	public String[] getOffsets() {
		return offsets;
	}
	public void setOffsets(String[] offsets) {
		this.offsets = offsets;
	}

	public String getEagleField(int field){
		String pos = "";
		if (!this.getEagles().isEmpty()){
			pos = this.getEagles().toLowerCase().substring(field, field+1);
		}
		return pos;
	}
}
